import request from '@/utils/request'

// 查询商城订单退款列表
export function listStoreReturn(query) {
  return request({
    url: '/system/storeReturn/list',
    method: 'get',
    params: query
  })
}

// 查询商城订单退款详细
export function getStoreReturn(id) {
  return request({
    url: '/system/storeReturn/' + id,
    method: 'get'
  })
}

// 新增商城订单退款
export function addStoreReturn(data) {
  return request({
    url: '/system/storeReturn',
    method: 'post',
    data: data
  })
}

// 修改商城订单退款
export function updateStoreReturn(data) {
  return request({
    url: '/system/storeReturn',
    method: 'put',
    data: data
  })
}

// 删除商城订单退款
export function delStoreReturn(id) {
  return request({
    url: '/system/storeReturn/' + id,
    method: 'delete'
  })
}
